	<table>
		<thead>
			<tr>
				<th width="20"><?php echo form_checkbox(array('name' => 'action_to_all', 'class' => 'check-all')); ?></th>
				<th><?php echo lang('escort_invoice_id_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_invoice_process_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_invoice_date_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_invoice_expiration_date_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_invoice_paid_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_invoice_company_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_invoice_description_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_invoice_subtotal_label'); ?></th>
				<th width="200"></th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="10">
					<div class="inner"><?php $this->load->view('admin/partials/pagination'); ?></div>
				</td>
			</tr>
		</tfoot>
		<tbody>
			<?php foreach ($invoices as $invoice) : ?>
				<tr>
					<td><?php echo form_checkbox('action_to[]', $invoice->id); ?></td>
					<td><?php echo $invoice->id ; ?></td>
					<td>
						<?php echo $invoice->process; ?>
					</td>
					<td><?php echo format_date($invoice->created_time); ?></td>
					<td>
						<?php echo format_date($invoice->expire_date); ?> 
					</td>
					<td><?php echo $invoice->status; ?></td>
					<td><?php echo $invoice->company; ?></td>
					<td><?php echo $invoice->description; ?></td>
					<td><?php echo $invoice->subtotal; ?>&euro;</td>
					<td>
						<?php echo anchor(site_url().'admin/be_invoice/export_to_pdf/'.$invoice->id, lang('escort_invoice_export_to_pdf_label'), 'class="btn orange" id="invoice_export"')?>
						<?php echo anchor('admin/be_invoice/edit/' . $invoice->id, lang('global:edit'), 'class="btn orange edit"'); ?>
						<?php echo anchor('admin/be_invoice/delete/' . $invoice->id, lang('global:delete'), array('class'=>'confirm btn red delete')); ?>
					</td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	</table>